package ch03.test.dao.impl;

import ch03.test.dao.ComputeDao;

/**
 * 除
 */
public class ComputeTakeDaoImpl implements ComputeDao {
    @Override
    public double num(int num1, int num2) {
        double num=0;
        if(num1==0){
            System.out.println("除数不能为零——");
        }else {
           num=num1/num2;
        }
        return num;
    }
}
